/*
 * 攀枝花学院二手图书拍卖平台
 * Design by 王伟学
 * Version :1.0
 */
package com.auction.system.domain.dto.auction;

import java.io.Serializable;

import com.auction.system.domain.pojo.auction.AuctionGoodPojo;
import com.auction.system.enums.EnumAuctionStatus;
import com.auction.system.utils.StringUtil;
import lombok.Data;
/**
 * auction_good - 拍品信息表 实体类
 * 
 * @author 软件工程3班-王伟学
 */
@Data
public class AuctionGood extends AuctionGoodPojo implements Serializable {

    private static final long serialVersionUID = 1L;
	
	public AuctionGood(){

    }

    public AuctionGood(Long id){
        this.setId(id);
    }

    private String endTimeStr;

	//发布拍品信息的用户名称
	private String bidUserName;

	//拍品的类别名称
	private String goodsTypeName;


	private String auctionStatusDesc;

    public String getAuctionStatusDesc(){
        if(StringUtil.isEmpty(getAuctionStatus())){
            return "";
        }
        return EnumAuctionStatus.getName(getAuctionStatus());
    }
}
